package com.joey.cloud.flowable.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.flowable.bpmn.model.FlowElement;

import java.io.Serializable;
@ApiModel(value="流程节点信息")
@Data
public class FlowElementVo implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "节点key")
    private String taskKey;
    @ApiModelProperty(value = "节点名称")
    private String taskName;
    @ApiModelProperty(value = "指派人id")
    private String assignee;
    @ApiModelProperty(value = "指派人名称")
    private String assigneeName;

    public FlowElementVo(){}
    public FlowElementVo(FlowElement flowElement){
        this.taskKey = flowElement.getId();
        this.taskName = flowElement.getName();
    }

}
